<div class="admin-main">
    <div class="panel-body">
        <div class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">客户订单号</label>
                <div class="layui-input-inline">
                    <input type="text" ng-model="queryObj.customerOrderCode" placeholder="请输入客户订单单号" autocomplete="off"
                           class="layui-input">
                </div>
                <label class="layui-form-label">中联订单号</label>
                <div class="layui-input-inline">
                    <input type="text" ng-model="queryObj.orderCode" placeholder="请输入订单单号" autocomplete="off"
                           class="layui-input">
                </div>
                <label class="layui-form-label">提车时间</label>
                <div class="layui-input-inline">
                    <input class="layui-input" ng-model="queryObj.pickBeginDate" placeholder="开始日" id="pickBeginDate"
                           ng-click="pickBeginDate($event)">
                </div>
                <div class="layui-input-inline">
                    <input class="layui-input" ng-model="queryObj.pickEndDate" placeholder="截止日" id="pickEndDate"
                           ng-click="pickEndDate($event)">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">运输方式</label>
                <div class="layui-input-inline">
                    <select ng-model="queryObj.transportType" id="transportType">
                        <option value="">请选择运输方式</option>
                        <option value="人送">人送</option>
                        <option value="零公里">零公里</option>
                        <option value="铁运">铁运</option>
                        <option value="水运">水运</option>
                    </select>
                </div>
                <label class="layui-form-label">订单状态</label>
                <div class="layui-input-inline">
                    <select ng-model="queryObj.orderStatus" id="orderStatus">
                        <option value="">请选择运单状态</option>
                        <option value="未离昌">未离昌</option>
                        <option value="在途">在途</option>
                        <option value="交付">交付</option>
                    </select>
                </div>
                <label class="layui-form-label">底盘号</label>
                <div class="layui-input-inline">
                    <input type="text" ng-model="queryObj.vehicleVin" placeholder="请输入底盘号" autocomplete="off"
                           class="layui-input">
                </div>
                <div class="layui-input-inline" style="width: 240px;">
                    <button class="layui-btn layui-btn-small" ng-click="queryCustomer()">查询</button>
                    <button type="reset" class="layui-btn layui-btn-small layui-btn-primary" ng-click = "cleanQuery()">重置
                    </button>
                    <button type="reset" class="layui-btn layui-btn-small layui-btn-primary" ng-click="exportExcel()">导出
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="admin-main" style="overflow: hidden; margin: 0;">
    <div style="overflow: auto; margin-bottom: 10px;">
        <table class="layui-table admin-table" style="width: 3000px;">
            <thead>
            <tr>
                <th style="width: 5%">客户订单号</th>
                <th style="width: 5%">中联订单号</th>
                <th style="width: 6%">底盘号</th>
                <th style="width: 7%">车型编码</th>
                <th style="width: 6%">车型名称</th>
                <th style="width: 9%">代理商名称</th>
                <th style="width: 4%">收车省份</th>
                <th style="width: 4%">收车城市</th>
                <th style="width: 4%">公里数</th>
                <th style="width: 5%">提车时间</th>
                <th style="width: 5%">发运时间</th>
                <th style="width: 5%">在途位置</th>
                <th style="width: 5%">抵达时间</th>
                <th style="width: 5%">订单状态</th>
                <th style="width: 5%">运输方式</th>
                <th style="width: 5%">备注</th>
                <th style="width: 5%">备注说明</th>
                <th style="width: 5%">入中联库时间</th>
                <th style="width: 5%">出中联库时间</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in customerOtdList track by $index">
                <td>{{ item.customerOrderCode }}</td>
                <td>{{ item.orderCode }}</td>
                <td>{{ item.vehicleVin }}</td>
                <td>{{ item.vehicleCode }}</td>
                <td>{{ item.vehicleName }}</td>
                <td>{{ item.agentName }}</td>
                <td>{{ item.receiptProvince }}</td>
                <td>{{ item.receiptCity }}</td>
                <td>{{ item.miles }}</td>
                <td>{{ item.pickTime == null?'':item.pickTime.substring(0,10)}}</td>
                <td>{{ item.shipmentTime == null?'':item.shipmentTime.substring(0,10)}}</td>
                <td>{{ item.onWayLocation }}</td>
                <td>{{ item.arriveTime == null?'':item.arriveTime.substring(0,10)}}</td>
                <td>{{ item.orderStatus }}</td>
                <td>{{ item.transportType }}</td>
                <td>{{ item.remark }}</td>
                <td>{{ item.remarkDesc }}</td>
                <td>{{ item.inBoundUnlcn == null?'':item.inBoundUnlcn.substring(0,10) }}</td>
                <td>{{ item.outBoundUnlcn == null?'':item.outBoundUnlcn.substring(0,10) }}</td>
            </tr>
            <tr ng-show="customerOtdList.length <= 0">
                <td colspan="19" style="padding-left: 495px; color: #cccccc;">没有符合条件的数据</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="admin-table-page" style="text-align: center;">
        <div id="clipPage" class="page">
        </div>
    </div>
</div>